﻿using JESAI.EventBus.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace JESAI.EventBus.EventBusStores
{
    public interface IEventStore
    {
        ValueTask Push(IEvent @event, CancellationToken cancellationToken);

        ValueTask<IEvent> Pop(CancellationToken cancellationToken);
    }
}
